package com.ruoyi.lxy.domain.bo;

import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import com.ruoyi.common.xss.Xss;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.validation.constraints.*;

import java.util.Date;

import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 旅行社业务对象 t_travelagen
 *
 * @author ruoyi
 * @date 2023-08-25
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class TTravelagenBo extends BaseEntity {

    /**
     * 旅行社表
     */
    @NotNull(message = "编号不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 用户名
     */
    @Xss(message = "用户账号不能包含脚本字符")
    @NotBlank(message = "用户名不能为空", groups = { AddGroup.class, EditGroup.class })
    private String username;

    /**
     * 密码
     */
    @Xss(message = "用户账号不能包含脚本字符")
    @NotBlank(message = "密码不能为空", groups = { AddGroup.class, EditGroup.class })
    private String password;

    /**
     * 旅行社名称
     */
    @Xss(message = "用户账号不能包含脚本字符")
    @NotBlank(message = "旅行社名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String agencyName;

    /**
     *
负责人
     */
//    @NotBlank(message = "负责人不能为空", groups = { AddGroup.class, EditGroup.class })
    private String principalName;

    /**
     * 联系电话
     */
//    @NotBlank(message = "联系电话不能为空", groups = { AddGroup.class, EditGroup.class })
    private String principalPhone;

    /**
     * 联系邮箱
     */
//    @NotBlank(message = "联系邮箱不能为空", groups = { AddGroup.class, EditGroup.class })
    private String principalEmail;

    /**
     * 状态，0可登录，1不可登录
     */
    @NotNull(message = "状态不能为空", groups = { AddGroup.class, EditGroup.class })
    private Integer status;


    /**
     * 项目组
     */
    private Long[] projectIds;
}
